﻿<?
require_once("/var/www/html/new/d/common/auth.php");
require_once("/var/www/html/new/d/common/nav.php");
require_once("/var/www/html/new/d/class/Navi.php");
require_once("/var/www/html/new/d/class/LeftNavi.php");
require_once("/var/www/html/new/d/class/notice.class.php");
require_once("/var/www/html/new/d/common/h_config.php");
if(!$_SESSION['unreadmsg']){
	require_once('/var/www/html/new/d/common/autoload.php');
	$_SESSION['unreadmsg'] = \pft\notice::UnReadCount($_SESSION['sid'],$GLOBALS['le']);
}
$urls=$_a->authUrl();
if($_SESSION['sdtype']==0){//供应商是否由供应伙伴
	$str="select m.id from pft_member_relationship r join pft_member m on r.son_id=m.id where son_id=".$_SESSION['sid'].
		" and r.status=0 and m.status=0 and r.ship_type=0 limit 1";
	$GLOBALS['le']->query($str);
	if(!$GLOBALS['le']->fetch_assoc()){
		$urls=array_diff($urls,array("partner.html?dtype=1"));
	}
}
$leftnavi=new LeftNavi($_auth,$_auth_group,$_SESSION['sdtype'],$urls);

$ptypeT=array("A"=>"门票","B"=>"线路","C"=>"酒店",""=>"门票");
$defaultType=$ptypeT[$_REQUEST['p_type']]?$ptypeT[$_REQUEST['p_type']]:"门票";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/default.css"/>
	<script language="javascript" src="http://www.12301.cc/js/jquery-1.8.0.min.js"></script>
	<title><?=isset($page_title)? $page_title:''?><?=$h_config[$httphost]['name']?>旅游营销平台</title>
</head>
<body>
	<div id="mask"></div>

    <!--头部-->
    <div class="header">
        <div class="top">
            <ul class="top_right">
                <li><a href="#" id="setHome">设为首页</a><span>|</span></li>
                <li><a href="#" id="addFav">加入收藏</a><span>&nbsp;</span></li>
                <!-- <li><a href="#" >帮助中心</a><span>&nbsp;</span></li> -->
            </ul>
            <span class="welc">您好，<a href="account_info.html"><?=$_SESSION['sdname']?$_SESSION['sdname']."：":""?><?=$_SESSION['dname']?></a></span>
            <a href="notice.html?inbox" class="xiaoxi">消息（<span class="orange"><?=$_SESSION['unreadmsg']?></span>）</a>
            <span class="greyline">|</span>
			<a href="#" id="logout">[退出]</a>
        </div>

        <div class="head">
            <div class="logo">
            	<span><a href="http://<?=$httphost?>"><img src="images/<?=$h_config[$httphost]['logo']?>" /></a></span>
            </div>
            <div class="search">
            	<form action="plist.html">
                	<input type="text" class="search_inpt" value="<?=$_REQUEST['key']?urldecode($_REQUEST['key']):""?>" placeText="输入您想找产品的名称关键词，如“故宫”" name="key" id="keyword"/>
					<input type="hidden" name="p_type" value="<?=$_REQUEST['p_type']?>" id="p_type"/>
                    <input type="submit" class="search_inpb" name="" value=""/>
                </form>
                <ul class="sear_more" id="sear_more">
                	<li id="firli"><?=$defaultType?></li>
                    <li p_type="A">门票</li>
                    <li p_type="B">线路</li>
                    <li p_type="C">酒店</li>
                    <!-- <li p_type="D">商品</li> -->
                </ul>
                <i class="xiala_icon"></i>
            </div>
            <div class="righed">
            	<a><img src="http://www.12301.cc/images/head_rigimg.png" /></a>
            </div>
        </div>
    </div>
	<script language="javascript" src="http://www.12301.cc/js/header.js"></script>
	<div class="navmem_war">
        <div class="navmem">
        	<h4><a href="home.html">我的平台首页</a></h4>
            <ul>
                <!--<li><a href="spread.html" target="_blank">合作推广</a><span>|</span></li>
            	<li><a href="u/index2.html" target="_blank">关于<?=$h_config[$httphost]['name']?></a><span>&nbsp;</span></li>-->
            </ul>
        </div>
    </div>
	 <!--主体-->
    <div class="main">
		<!--subnav-导航栏-->
		<div class="subnav">
			<?=Navi::breadcrumb($pages, $depth)?>
        </div>
	
        <!--menu-->